home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: mlin01@aol.com (MLin01)
- Newsgroups: comp.lang.c++
- Subject: Simulation Problem, Help!!!
- Date: 7 Feb 1996 01:58:34 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4f9iiq$5nl@newsbf02.news.aol.com>
- Reply-To: mlin01@aol.com (MLin01)
-
- Hi, All:
-
- I need to write a program to do some bond trading simulations. This
- program works like this:
-
- 1. It asks the user about the interest rate constrains.
- (e.g., if rate < 8%, buy $1000.
- if 8 <= rate < 12%, buy $2000
- if rate >= 12%, buy $3000
- )
-
- 2. Based on the constrains and the actual interest rate, the program will
- come up with the gain
- or lost.
-
- The chanllenges are:
- 1. I need to validate user inputs. This implies the inputs will have the
- correct syntax and semantic for the specific language.
- 2. All constrains have to be exclusive and the union of all the constrains
- is a universe.
- 3. Translate all the constrains as part of the calculation function at run
- time.
-
- If you have similiar experience, please let me know at mlin01@aol.com.
-
- Many thanks in advance.
-
- Michael
-